public class FinalFieldExample {
    final public int x;
    private FinalFieldExample globalField;

    public FinalFieldExample(int x) {
        this.x = x;
        setGlobalField(this);
    }

    public void setGlobalField(FinalFieldExample globalField) {
        this.globalField = globalField;
    }
    public FinalFieldExample getGlobalField() {
        return globalField;
    }
}
